local CommonOHOH = _G.CommonOHOH;
local M = CommonOHOH.class.new(script, CommonOHOH.files.BaseComponent());
local Client_AudioManager = _G.ClientOHOH.load.Client_AudioManager();
local gEffectPerfab=_G.ClientOHOH:GetPath_Loop("BroShow.Effect",workspace)

local broGui=_G.ClientOHOH.load.UIManager().ui_list.BroGui

--概述：控制怪物的动画播放

----------
function M.new(self,...)
	return M(self,...);
end;

function M.ctor(self, parent)
	M.super.ctor(self, parent);

    self.player=self.parent.player
	self.character=self.parent


	self.character:GetState("upgrade").EnterEvent:Connect(function()
       local e=  gEffectPerfab:Clone()
       e.Parent=workspace
       require(e.PlayCtrl).Play(gEffectPerfab.Position)
	end)

end;
--析构函数
function M.dtor(self)

    M.super.dtor(self);

end;



return M